package com.example.wanjialei.pojo;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

public class Summary {
    private Integer no;

    private Timestamp sumdate;

    private Integer sumno;

    private Integer orderno;

    private String maker;

    private String note;

    private List<Stock> stocks;
    private Date      sumdatefrom;
    private Date      sumdateto;
    private Integer   page = 1;//当前页数
    private Integer   rows = 10;//每页显示的件数

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }

    public List<Stock> getStocks() {
        return stocks;
    }

    public void setStocks(List<Stock> stocks) {
        this.stocks = stocks;
    }

    public Date getSumdatefrom() {
        return sumdatefrom;
    }

    public void setSumdatefrom(Date sumdatefrom) {
        this.sumdatefrom = sumdatefrom;
    }

    public Date getSumdateto() {
        return sumdateto;
    }

    public void setSumdateto(Date sumdateto) {
        this.sumdateto = sumdateto;
    }

    public Integer getNo() {
        return no;
    }

    public void setNo(Integer no) {
        this.no = no;
    }

    public Timestamp getSumdate() {
        return sumdate;
    }

    public void setSumdate(Timestamp sumdate) {
        this.sumdate = sumdate;
    }

    public Integer getSumno() {
        return sumno;
    }

    public void setSumno(Integer sumno) {
        this.sumno = sumno;
    }

    public Integer getOrderno() {
        return orderno;
    }

    public void setOrderno(Integer orderno) {
        this.orderno = orderno;
    }

    public String getMaker() {
        return maker;
    }

    public void setMaker(String maker) {
        this.maker = maker == null ? null : maker.trim();
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note == null ? null : note.trim();
    }

    @Override
    public String toString() {
        return "Summary{" +
                "no=" + no +
                ", sumdate=" + sumdate +
                ", sumno=" + sumno +
                ", orderno=" + orderno +
                ", maker='" + maker + '\'' +
                ", note='" + note + '\'' +
                ", stocks=" + stocks +
                ", sumdatefrom=" + sumdatefrom +
                ", sumdateto=" + sumdateto +
                '}';
    }
}